package xyz.xtt.asset.vo;

import java.util.Objects;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@NoArgsConstructor
@Data
@Builder
public class AddGroupMaxMemberCountResponse {
	private Integer code;

	public Boolean isOk() {
		return Objects.equals(0, code);
	}

	public static AddGroupMaxMemberCountResponse fail() {
		return AddGroupMaxMemberCountResponse.builder().code(-1).build();
	}
}
